home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / newsgroups / misc.20031118-20041115 / 000047_Chris@bundy.co.uk_Mon Dec 8 18:34:39 2003.msg < prev    next >
Internet Message Format  |  2020-01-01  |  3KB

  1. Path: newsmaster.cc.columbia.edu!newsfeed.nyu.edu!newsfeed.berkeley.edu!ucberkeley!news.tele.dk!news.tele.dk!small.news.tele.dk!lnewsoutpeer00.lnd.ops.eu.uu.net!lnewsinpeer00.lnd.ops.eu.uu.net!emea.uu.net!mephistopheles.news.clara.net!newspeer.clara.net!news.clara.net!doris.uk.clara.net
  2. From: Chris@bundy.co.uk
  3. Newsgroups: comp.protocols.kermit.misc
  4. Subject: Re: Command line switches
  5. Date: Mon, 08 Dec 2003 22:57:58 +0000
  6. Sender: Chris
  7. Reply-To: Chris@bundy.co.uk
  8. Message-ID: <820atvkrg5tk7hkv0bn4r840kv6ab17r61@4ax.com>
  9. References: <pqp8tv06mim45q30h48du92s90oklut9sl@4ax.com> <slrnbt91s0.o2u.fdc@sesame.cc.columbia.edu>
  10. X-Newsreader: Forte Agent 1.92/32.572
  11. MIME-Version: 1.0
  12. Content-Type: text/plain; charset=us-ascii
  13. Content-Transfer-Encoding: 7bit
  14. X-Complaints-To: abuse@clara.net (please include full headers)
  15. X-Trace: 82d210175d88204149042708e0ba308c88c70c9136617661069010603fd501f1
  16. NNTP-Posting-Date: Mon, 08 Dec 2003 22:57:53 +0000
  17. Lines: 70
  18. Xref: newsmaster.cc.columbia.edu comp.protocols.kermit.misc:14723
  19.  
  20. On 8 Dec 2003 14:15:28 GMT, Frank da Cruz
  21. <fdc@columbia.edu> wrote:
  22.  
  23. Thanks frank,
  24.  
  25. ive tried your script but I get a syntax error end
  26. of file unexpected expecting "then".
  27.  
  28. I ran the file on boot as I want to log
  29. continuously
  30.  
  31. If I can explain a little more, Im actual trying
  32. to capture the data received at  the port to a
  33. file. I don't actually need to interact. if i want
  34. to see current activity I tail the log file. The
  35. data is generated by a call logger which I feed
  36. into the data port of my freebsd file server.
  37.  
  38.  
  39. Many thanks
  40.  
  41. Chris
  42.  
  43. >In article <pqp8tv06mim45q30h48du92s90oklut9sl@4ax.com>,
  44. >Chris@bundy.co.uk wrote:
  45. >: Im trying to get Kermit to record text data that
  46. >: im sending to the serial port, and write a log
  47. >: file. I can do this manually but I just cant quite
  48. >: get it to work using command line switches.
  49. >: 
  50. >: the closes i've got is
  51. >: 
  52. >: server01# /usr/kermit/work/kermit -l /dev/cuaa0 -b
  53. >: 9600 -C"log session /var/log/session.log" -c
  54. >: 
  55. >: this monitors the port OK but does not write the
  56. >: log file. which I want it to append to.
  57. >: 
  58. >The -C command-line argument is not treated in sequence with
  59. >the others.  The order in which command sources are handled
  60. >is listed on page 462 of "Using C-Kermit".  The -C option is
  61. >handled after all other command-line options.  Anyway, you're
  62. >missing a space after -C.
  63. >
  64. >It's usually best not to mix and match command-line options and
  65. >interactive commands.  Command-line options give you access to
  66. >a small subset of Kermit's functions.  When you need more than
  67. >that, use the command language.  To do what you want, create a
  68. >little file containing:
  69. >
  70. >  #!/usr/kermit/work/kermit
  71. >  set modem type none
  72. >  set line /dev/cuaa0
  73. >  if fail exit 1
  74. >  set exit warning off
  75. >  set speed 9600
  76. >  log session /var/log/session.log
  77. >  if fail exit 1
  78. >  connect
  79. >
  80. >give it execute permission, and run it instead of the Kermit
  81. >binary.  You can also replace the CONNECT command with any
  82. >desired further automated interactions, as described in the
  83. >script-writing tutorial:
  84. >
  85. >  http://www.columbia.edu/kermit/ckscripts.html#tut
  86. >
  87. >
  88. >- Frank
  89.  
  90.